package com.yangwudi.utils;

/**
 * ThreadLocal操作的工具类
 */
public class CurrentHolder {
    private static final ThreadLocal<Integer> currentHolder = new ThreadLocal<>();

    public static void setCurrentHolder(Integer employeeId) {
        currentHolder.set(employeeId);
    }
    public static Integer getCurrentEmployeeId() {
        return currentHolder.get();
    }
    public static void remove() {
        currentHolder.remove();
    }
}
